<?php
$url = "http://testask.xcar.com.cn/?tojson&v=" . time();
$cookies = "";
if (isset($_COOKIE['_discuz_uid'])) {
    $loginStatus = $_COOKIE['_discuz_uid'];
    $auth = $_COOKIE['bbs_auth'];
    $cookies = "_discuz_uid=" . $loginStatus . ";bbs_auth=" . $auth . "";
}
//echo $loginStatus;
$opts = array(
    'http' => array(
        'method' => 'GET',
        'header' =>
            "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\r\n" .
            "Cookie:" . $cookies . " \r\n" .
            "Pragma:no-cache\r\n",
    )
);
$opts = stream_context_create($opts);
$contents = file_get_contents($url, false, $opts);
//echo $contents;
//var_dump($contents);die;
$data = json_decode($contents, true);
//    var_dump($data);
$global = $data['global'];
$scope = $data['scope'];
//echo json_encode($scope);
//    var_dump($scope);
?>
<?php echo '<script>window.pageData=' . json_encode($scope) . '</script>' ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="keywords" content="<?= $global['head']['keywords'] ?>"/>
    <meta name="description" content="<?= $global['head']['keywords'] ?>"/>
    <title><?= $global['head']['title'] ?></title>
    <?/* if (!empty($global['res_config']['css'])) { */?><!--
        <?/* foreach ($global['res_config']['css'] as $css) { */?>
            <link rel="stylesheet" href="<?/*= $css */?>">
        <?/* } */?>
    --><?/* } */?>
    <link rel="stylesheet" href="//assertsdev.xcarimg.com:8080/dist/v1.0/css/index.css">
</head>
<body>
<?php include "../common/new_header_tpl.php" ?>
<!-- ad start -->
<div class="container banner_container">
    <div class="wp cl">
        <ul class="top_banner">
            <li id="div_newd0_js_718">
                <a href="#" target="_blank">
                    <img src="http://temp.im/280x90" alt="" width="280" height="90">
                </a>
                <i></i>
            </li>
            <li class="center_banner" id="div_newd0_js_723">
                <a href="#" target="_blank">
                    <img src="http://temp.im/580x90" alt="" width="580" height="90">
                </a>
                <i></i>
            </li>
            <li id="div_newd0_js_719">
                <a href="#" target="_blank">
                    <img src="http://temp.im/280x90" alt="" width="280" height="90">
                </a>
                <i></i>
            </li>
        </ul>
        <!-- <script src="//d0.xcar.com.cn/adpush/push/ads.php?pids=718,723,719&pushtype=nobbscar&cid=&style=div"></script> -->
    </div>
</div>
<!-- ad end -->
<!-- nav start -->
<div class="container link_container">
    <div class="wp cl">
        <h1>社区</h1>
        <ul class="nav_link">
            <li>
                <a href="#" class="active">
                    推荐
                </a>
            </li>
            <li>
                <a href="#">
                    关注
                </a>
            </li>
            <li>
                <a href="#">
                    热帖
                </a>
            </li>
            <li>
                <a href="#">
                    游记
                </a>
            </li>
            <li>
                <a href="#">
                    问答
                </a>
            </li>
            <li>
                <a href="#">
                    大作业
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- nav end -->
<!-- hot start -->
<div class="container hot_container">
    <div class="wp cl">
        <div class="pic_focus">
            <div class="bd">
                <ul>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="#">
                            <img src="http://temp.im/760x430" />
                        </a>
                    </li>
                </ul>
            </div>

            <div class="hd">
                <ul>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                    <li>
                        <img src="http://temp.im/96x52" />
                        <span class="cover"></span>
                        <b>▲</b>
                    </li>
                </ul>
            </div>
            
        </div>
        <div class="forum_item">
            <h1 class="forum_title">论坛直达</h1>
            <dl>
                <dt>收藏论坛</dt>
                <dd>
                    <a href="#">奔驰论坛</a>
                </dd>
                <dd>
                    <a href="#">自驾游论坛</a>
                </dd>
                <dd>
                    <a href="#">上海论坛</a>
                </dd>
                <dd>
                    <a href="#">北京现代论坛</a>
                </dd>
            </dl>
            <dl>
                <dt>论坛足迹</dt>
                <dd>
                    <a href="#">奔驰论坛</a>
                </dd>
                <dd>
                    <a href="#">自驾游论坛</a>
                </dd>
                <dd>
                    <a href="#">上海论坛</a>
                </dd>
                <dd>
                    <a href="#">北京现代论坛</a>
                </dd>
            </dl>
            <dl>
                <dt>论坛推荐</dt>
                <dd>
                    <a href="#">奔驰论坛 <span>编辑推荐</span></a>
                </dd>
                <dd>
                    <a href="#">自驾游论坛 <span>编辑推荐</span></a>
                </dd>
                <dd>
                    <a href="#">上海论坛 <span>编辑推荐</span></a>
                </dd>
                <dd>
                    <a href="#">北京现代论坛 <span>编辑推荐</span></a>
                </dd>
            </dl>
            <div class="search_forum">
                找论坛
            </div>
            <div class="search_ad">
                <a href="#">足不出户挑好车，海量特价任您选！！</a>
                <i></i>
            </div>
        </div>
    </div>
</div>
<!-- hot end -->
<!-- feature start -->
<div class="container feature_container">
    <div class="wp cl">
        <div class="feature_item">
            <h3>社区精选</h3>
            <ul class="feature_nav">
                <li class="active">
                    <a href="#">
                        全部
                    </a>
                </li>
                <li>
                    <a href="#">
                        新车作业
                    </a>
                </li>
                <li>
                    <a href="#">
                        自驾游记
                    </a>
                </li>
                <li>
                    <a href="#">
                        改装美容
                    </a>
                </li>
                <li>
                    <a href="#">
                        爱车生活
                    </a>
                </li>
                <li>
                    <a href="#">
                        社区生活
                    </a>
                </li>
            </ul>
            <a href="#" class="feature_more">查看更多 ></a>
        </div>
        <div class="feature_list">
            <?php for($i=0;$i<16;$i++){?>
            <li class="news_item">
                <div class="feature_img">
                    <img src="http://temp.im/280x210" alt="">
                    <ul class="feature_info">
                        <li class="icon_info icon_message">30</li>
                        <li class="icon_info icon_follow">100</li>
                        <li class="icon_info icon_see">1.4万</li>
                    </ul>
                </div>
                <div class="user_item">
                    <p class="user_photo">
                        <img src="http://temp.im/50x50" alt="">
                    </p>
                    <p class="user_name">飞行电熨斗</p>
                    <p class="news_title">美国西海岸自驾游泰国新加坡印度尼西亚（奔驰CLA体验篇）</p>
                </div>
            </li>
            <?php }?>
        </div>
        <div class="more_btn">
            <span>加载更多</span>
        </div>
        <dl class="like_container">
            <dt>猜你喜欢 <span>换一批</span></dt>
            <?php for($i=0;$i<15;$i++){?>
            <dd><i class="icon_order"></i><a href="#">日本游之东京大阪印象</a></dd>
            <?php }?>
        </dl>
        <div class="billing_container">
            <a href="#">
                <img src="http://temp.im/1180x80" alt="广告">
            </a>
        </div>
        <div class="works_container">
            <h3>原创作品</h3>
            <div class="works_item">
                <div class="bd">
                    <ul class="works_list">
                        <?php for($i=0;$i<15;$i++){?>
                        <li>
                            <div class="pic_item">
                                <a href="#" target="_blank">
                                    <img src="http://temp.im/220x123" />
                                </a>
                            </div>
                            <div class="title_item">
                                <a href="#" target="_blank">效果图1</a>
                            </div>
                        </li>
                        <?php }?>
                    </ul>
                </div>
                <div class="hd">
                    <a class="prev">&lsaquo;</a>
                    <ul></ul>
                    <a class="next">&rsaquo;</a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- feature end -->
<?php include "../common/new_footer_tpl.php" ?>
<?/* if (!empty($global['res_config']['js'])) { */?><!--
    <?/* foreach ($global['res_config']['js'] as $js) { */?>
        <script src="<?/*= $js */?>"></script>
    <?/* } */?>
--><?/* } */?>

<script src="//assertsdev.xcarimg.com:8080/dist/v1.0/js/index.js"></script>
</body>
</html>